]> dgit.raspbian.org Git - gnome-shell.git/commit
windowPreview: Add scaled extra size to chromeWidths() and chromeHeights
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 8 Feb 2021 18:06:37 +0000 (19:06 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 19 Feb 2021 11:23:07 +0000 (11:23 +0000)
commitbc034d55531b8762169bc2ef56178a3c003889b8
treeec4a0ac6601b0bc8d6bfddaecc66fd57292f7d03
parent7d40930cd687823c3bf054b6824d5f47b9b7f607
windowPreview: Add scaled extra size to chromeWidths() and chromeHeights

Right now the rowSpacing and columSpacing of the layout strategy is
calculated by looking at the overlapping sizes of the close button and
the app icon of the WindowPreview, plus a constant spacing read from CSS
by the WorkspaceLayout that's added to that. We're not factoring in the
extra size of the scaled-up WindowPreviews here and instead depend on
the constant spacing being large enough. If we don't want to depend on
the spacing here, we should add the scaled-up extra size to the sizes
returned by chromeWidths() and chromeHeights().

Since the last commits all previews scale up by the same amount of
pixels, so we can now just add that size to the values returned by
chromeWidths() and chromeHeights().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1692>
js/ui/windowPreview.js
js/ui/workspace.js